<div id="mws-container" class="clearfix">
<div class="container">
<div class="mws-panel grid_8">
                	<div class="mws-panel-header">
                    	<span class="mws-i-24 i-table-1">Cities </span>
                    </div>
                    <div class="mws-panel-body">
                    <div class="mws-panel-toolbar top clearfix">
                        	<ul>
                            	<li>
								<?php echo $this->Html->link('Add',array('controller'=>'setups','action'=>'addcities',$citylists[0]['City']['stateSlug']),array('class'=>'mws-ic-16 ic-accept'));?></li>
                            	<li><a href="#" class="mws-ic-16 ic-printer">Print</a></li>
                            </ul>
                        </div>
                        <div class="dataTables_wrapper"><div class="dataTables_length"><label>Show <select size="1"><option value="10" selected="selected">10</option><option value="25">25</option><option value="50">50</option><option value="100">100</option></select> entries</label></div><div class="dataTables_filter"><label>Search: <input type="text"></label></div><table class="mws-datatable-fn mws-table">
						
                            <thead>
                                <tr>
								<th class="sorting_asc" rowspan="1" colspan="1" style="width: 141px;">City</th>
								<th class="sorting" rowspan="1" colspan="1" style="width: 254px;">Featured</th>
                                 <th class="sorting" rowspan="1" colspan="1" style="width: 239px;">Options</th>
						    </thead>
                            
                        <tbody>
                        <?php
						if(!empty($citylists))
						{
							foreach($citylists as $citylist)
							{
						?>
								<tr class="gradeA odd">
                                    <td class=" sorting_1"><?php echo $citylist['City']['city']?></td>
                                    <td>
				<?php 
				if($citylist['City']['featured'] == 1)
				{
				echo $html->link($html->image('icon_check.gif'), array('controller'=>'setups', 'action'=>'cngfeaturedstats','City',$citylist['City']['id'],'cities',$citylist['City']['stateSlug']),array('escape' => false,'id'=>'alink'));
				}
				else
				{
				echo $html->link($html->image('icon_uncheck.gif'), array('controller'=>'setups', 'action'=>'cngfeaturedstats','City',$citylist['City']['id'],'cities',$citylist['City']['stateSlug']),array('escape' => false,'id'=>'alink'));
				}
				?>
                 </td>
                                    <td class="center">
 <?php echo $html->link($html->image('bt_edit.gif'), array('controller'=>'setups', 'action' => 'editcountry'),array('escape' => false,'id'=>'alink'));?>
 <?php echo $html->link($html->image('bt_delete.gif'), array('controller'=>'setups', 'action'=>'delete_by_id','City',$citylist['City']['id'],'states'),array('escape' => false,'id'=>'alink'));?>
   
									</td>
                                </tr>
                       <?php
							}
						}
						else
						{
						?>
                        <tr class="gradeA odd">
                                    <td class=" sorting_1" colspan="5" style="text-align:center">No Cities Available!</td>    
                                </tr>
                        <?php
						}
						?>
								
								</tbody></table>
								<div class="dataTables_info">Showing 1 to 10 of 57 entries</div><div class="dataTables_paginate paging_full_numbers"><span class="first paginate_button paginate_button_disabled">First</span><span class="previous paginate_button paginate_button_disabled">Previous</span><span><span class="paginate_active">1</span><span class="paginate_button">2</span><span class="paginate_button">3</span><span class="paginate_button">4</span><span class="paginate_button">5</span></span><span class="next paginate_button">Next</span><span class="last paginate_button">Last</span></div></div>
                    </div>
                </div>
				</div>
				</div>